<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
//use yii\bootstrap\ActiveForm;
?>
<!--
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="keywords" content="首页关键字" />
  <meta name="description" content="首页描述" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Cache-Control" content="no-cache" />
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0" />
  <meta name="apple-mobile-web-app-capable" content="yes"/>
  
  <link rel="stylesheet" href="/resources/css/weui/weui.min.css">
  <link rel="stylesheet" href="/resources/css/main.min.css">
  <link rel="stylesheet" href="/resources/css/man.min.css">
  
  <script src="/resources/js/jquery-1.10.min.js"></script>
  <script src="/resources/js/jquery.touchSwipe.min.js"></script>
  <script src="/resources/js/frmwebm.min.js"></script>
  <title>我的礼品资源</title>
</head>
<body style="background: #ebebeb none repeat scroll 0 0;">
-->
<?php $this->title = '我的礼品资源' ?>

<?php foreach($me->sourceGifts as $model) { ?>

<div class="weui_cells weui_cells_access">
    <a href="#" class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary weui_cell_text">
            <p>礼品类型</p>
        </div>
        <div class="weui_cell_ft"><?php echo \common\models\MktSourceGift::getGiftTypeOption($model->gift_type) ?></div>

    </a>
    <a href="#" class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary weui_cell_text">
            <p>礼品价值</p>
        </div>
        <div class="weui_cell_ft"><?php echo $model->gift_price;//echo \common\wosotech\Util::getShortInt($model->gift_price) ?>元</div>

    </a>
    <a href="#" class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary weui_cell_text">
            <p>礼品数量</p>
        </div>
        <div class="weui_cell_ft"><?php echo \common\wosotech\Util::getShortInt($model->gift_count) ?>份</div>
    </a>
</div>
<?php } ?>

<div class="weui_msg">
	<div class="weui_extra_area">
		<p>还有其他礼品资源？</p>
		<p class="weui_btn_area">
			<a href="<?php echo Url::to(['wap/self-resources-addgift']); ?>" class="weui_btn weui_btn_warn" style="color:#ffffff">继续添加礼品资源</a>
		</p>
	</div>
</div>

<script type="text/javascript">
</script>

<!--
</body>
</html>
-->
<?php
/*
<div class="weui_cells weui_cells_access">
    <a href="newsAlert.jsp" class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary weui_cell_text">
            <p>礼品类型</p>
        </div>
        <div class="weui_cell_ft">实物类礼品</div>
    </a>
    <a href="doNotDisturb.jsp" class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary weui_cell_text">
            <p>礼品价值</p>
        </div>
        <div class="weui_cell_ft">1百元</div>
    </a>
    <a href="privacy.jsp" class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary weui_cell_text">
            <p>礼品数量</p>
        </div>
        <div class="weui_cell_ft">1千份</div>
    </a>
</div>

*/